import { defHttp } from '@/utils/http/axios'

enum Api {
  selectTrainingNumberDetailPage = '/training/selectTrainingNumberDetailPage',
  statisticsTrainingNumber = '/training/statisticsTrainingNumber',
  updateTrainingNumber = '/training/updateTrainingNumber',
  batchUpdateAssessmentUser = '/training/batchUpdateAssessmentUser',
  batchUpdateGroup = '/training/batchUpdateGroup',
  batchTrainingEmail = '/training/batchTrainingEmail',
  exportTrainingNumberDetail = '/training/export/selectTrainingNumberDetailPage',
  getUserIDList = "/training/userList"
}

// 培训详情列表
export function selectTrainingNumberDetailPage(data) {
  return defHttp.post({ url: Api.selectTrainingNumberDetailPage, data })
}

// 培训详情列表
export function statisticsTrainingNumber(params) {
  return defHttp.get({ url: Api.statisticsTrainingNumber, params })
}

// 修改培训期数
export function updateTrainingNumber(data) {
  return defHttp.post({ url: Api.updateTrainingNumber, data })
}


// 批量修改考核官
export function batchUpdateAssessmentUser(data) {
  return defHttp.post({ url: Api.batchUpdateAssessmentUser, data }, { isTransformResponse: false })
}


// 批量设置分组与选题
export function batchUpdateGroup(data) {
  return defHttp.post({ url: Api.batchUpdateGroup, data }, { isTransformResponse: false })
}

// 批量发送邮件培训详情
export function batchTrainingEmail(data) {
  return defHttp.post({ url: Api.batchTrainingEmail, data }, { isTransformResponse: false })
}
// 批量发送邮件培训详情
export function getUserIDList(data) {
  return defHttp.post({ url: Api.getUserIDList, data })
}
